--[[/**
-- * 
 * 叠满层数后,触发另一个buff
-- *
-- */]]

---@class BuffEffect684100 : BaseBuffEffect
BuffEffect684100 = ClientFight.CreateClass("BuffEffect684100", ClientFight.BaseBuffEffect)
local t = BuffEffect684100

---@param fight Fight
---@param buff FighterBuff
function t:afterAdd(fight, buff)
    if (buff.overlay < buff.buffBean.f_MaxReplaceLyer) then
        return ;
    end
    local buffEffectValue = buff.buffBean.f_BuffEffectValue;
    local addBuffId = buffEffectValue[1];
    --移除自身
    BuffManager.removeFighterBuff(fight, buff.target, buff, true);
    BuffManager.addBuff(fight, buff.skill, buff.source, buff.target, false, addBuffId, 1);
end

t.New()